package com.yjy.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test36Controller {

    @RequestMapping("/testSleep30s")
    public Object testSleep30s() throws InterruptedException {
        Thread.sleep(1000*30);
        return "sleep 30s";
    }

    @RequestMapping("/testSleep1m")
    public Object testSleep1m() throws InterruptedException {
        Thread.sleep(1000*60);
        return "sleep 1m";
    }

}
